package com.ecoolex.ying.space.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class EstateProjectActivityExternalGoodsCategoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public EstateProjectActivityExternalGoodsCategoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public EstateProjectActivityExternalGoodsCategoryExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public EstateProjectActivityExternalGoodsCategoryExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        EstateProjectActivityExternalGoodsCategoryExample example = new EstateProjectActivityExternalGoodsCategoryExample();
        return example.createCriteria();
    }

    public EstateProjectActivityExternalGoodsCategoryExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public EstateProjectActivityExternalGoodsCategoryExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public EstateProjectActivityExternalGoodsCategoryExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public EstateProjectActivityExternalGoodsCategoryExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public EstateProjectActivityExternalGoodsCategoryExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExternalGoodsCategoryIdIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId is null");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId is not null");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId =", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdNotEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId <>", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdGreaterThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId >", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId >=", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdLessThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId <", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId <=", value, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId in", values, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdNotIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId not in", values, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId between", value1, value2, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andExternalGoodsCategoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ExternalGoodsCategoryId not between", value1, value2, "externalGoodsCategoryId");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId is null");
            return (Criteria) this;
        }

        public Criteria andProjectIdIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId is not null");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId =", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId <>", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId >", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId >=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId <", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId <=", value, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ProjectId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andProjectIdIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId not in", values, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andProjectIdNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ProjectId not between", value1, value2, "projectId");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Name` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Name` not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andLevelIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` is null");
            return (Criteria) this;
        }

        public Criteria andLevelIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` is not null");
            return (Criteria) this;
        }

        public Criteria andLevelEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` =", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` <>", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` >", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` >=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelLessThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` <", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` <=", value, "level");
            return (Criteria) this;
        }

        public Criteria andLevelLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Level` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andLevelIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` not in", values, "level");
            return (Criteria) this;
        }

        public Criteria andLevelBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Level` not between", value1, value2, "level");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId is null");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId is not null");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId =", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdNotEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId <>", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdGreaterThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId >", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId >=", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdLessThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId <", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId <=", value, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.ParentCategoryId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId in", values, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdNotIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId not in", values, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId between", value1, value2, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andParentCategoryIdNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.ParentCategoryId not between", value1, value2, "parentCategoryId");
            return (Criteria) this;
        }

        public Criteria andWeightIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight is null");
            return (Criteria) this;
        }

        public Criteria andWeightIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight is not null");
            return (Criteria) this;
        }

        public Criteria andWeightEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight =", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight <>", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight >", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight >=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightLessThan(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight <", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualTo(Integer value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight <=", value, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Weight <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andWeightIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotIn(List<Integer> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight not in", values, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andWeightNotBetween(Integer value1, Integer value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.Weight not between", value1, value2, "weight");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` is null");
            return (Criteria) this;
        }

        public Criteria andOnlineIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` is not null");
            return (Criteria) this;
        }

        public Criteria andOnlineEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` =", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineNotEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` <>", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThan(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` >", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` >=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineLessThan(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` <", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` <=", value, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`Online` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andOnlineIn(List<Boolean> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotIn(List<Boolean> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` not in", values, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` between", value1, value2, "online");
            return (Criteria) this;
        }

        public Criteria andOnlineNotBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`Online` not between", value1, value2, "online");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(EstateProjectActivityExternalGoodsCategory.Column column) {
            addCriterion(new StringBuilder("estateprojectactivityexternalgoodscategory.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("estateprojectactivityexternalgoodscategory.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private EstateProjectActivityExternalGoodsCategoryExample example;

        protected Criteria(EstateProjectActivityExternalGoodsCategoryExample example) {
            super();
            this.example = example;
        }

        public EstateProjectActivityExternalGoodsCategoryExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(EstateProjectActivityExternalGoodsCategory.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(EstateProjectActivityExternalGoodsCategory.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.ying.space.entity.EstateProjectActivityExternalGoodsCategoryExample example);
    }
}